package com.guaoran.interview.spring.scope.service;

import org.springframework.stereotype.Service;
import org.springframework.web.context.annotation.ApplicationScope;

import javax.annotation.PreDestroy;

/**
 * @author : 孤傲然
 * @description : ApplicationService
 * @date :2019/12/10 13:30
 */
@ApplicationScope
@Service
public class ApplicationService {
//    @PreDestroy
    public void destroy(){
        System.out.println("ApplicationService ... destroy");
    }
}
